﻿<%@ Page Language="C#" MasterPageFile="~/Management.master" AutoEventWireup="true" CodeFile="ProblemView.aspx.cs" Inherits="ProblemView" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>

<%@ Register Assembly="EclipseWebSolutions.DatePicker" Namespace="EclipseWebSolutions.DatePicker"
    TagPrefix="ews" %>
<%@ Register assembly="StrengthControls.Scrolling" namespace="StrengthControls.Scrolling" tagprefix="cc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="conSearch" Runat="Server">

    &nbsp;
            <div class="AccordionPanel">
        	    <div class="AccordionPanelTab"><b class="contentcolor"><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/indicator.png" />Problem</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div>
        	    <div class="AccordionPanelContent">
        	<br />
        	      
     <div style="text-align:left; height: 40px;" >
         <asp:Label ID="Label1" runat="server" Text="ProblemId"></asp:Label>
        
&nbsp;<asp:TextBox ID="txtProblemId" runat="server" Height="16px" Width="200px" >  
      </asp:TextBox>
         
         <br />
     &nbsp;<br />
         
         <div>
             <asp:Label ID="Label2" runat="server" Text="Problem"></asp:Label>
             
&nbsp;<asp:TextBox ID="txtProblem" runat="server" Height="16px" Width="200px" >
                 
             </asp:TextBox>
             <br />
             <br />
             <div style="height: 30px" align="right">

                 <asp:Button CssClass="btnexpress" BorderStyle="Dotted" ID="bntSearch" 
                     runat="server" Text="Search" onclick="bntFilter_Click" />
                     &nbsp;&nbsp;&nbsp;
             </div>
         </div>
     </div> 
 </div>
 </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="m_contentBody" Runat="Server">

   <body  onload ="TabbedPanels1.showPanel(<%=GetTabIndex()%>)">
    
         <asp:TextBox ID="txtHiddenSoftwareId" runat="server" Width="77px" 
            Visible="False"></asp:TextBox>                          
    <div id="containerright" class="containerright">
          <div id="TabbedPanels1" class="TabbedPanels" >
                <ul class="TabbedPanelsTabGroup">
                  <li class="TabbedPanelsTab" tabindex="0">List problem</li>
                  <li class="TabbedPanelsTab" tabindex="1">Edit problem</li>
                  <li class="TabbedPanelsTab" tabindex="2">Add problem</li>
                </ul>
              <div class="TabbedPanelsContentGroup" >

                  <div class="TabbedPanelsContent" >
                                 
<table  class="GridItem" cellspacing="2" cellpadding="2" style="width:750px;height:350px;text-align:center">
<tr><td align="center" class="BigLabel" >
         <asp:Label ID="lblTotalProblem" runat="server" Text="Label"></asp:Label><asp:Label ID="lblMessageValidate" runat="server" CssClass="permissionstyle"></asp:Label>
        </td></tr>
 <tr >
             <td  align="center" class="GridItem"  style="text-align:center">
             <asp:GridView ID="grdProblem1" runat="server" AllowPaging="True" Width="750px" 
                     AutoGenerateColumns="False"  Visible ="False" DataSourceID="dsMessage" 
                   
                     CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="3">
                 <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                 <RowStyle BackColor="#EFF3FB" />
                 <Columns>
                     <asp:BoundField DataField="Label" />
                 </Columns>
             
                   <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                   <RowStyle BackColor="#EFF3FB" />
                   <SelectedRowStyle BackColor="#FF5050" />
                   <HeaderStyle BorderStyle="None" CssClass="GridViewHeader" Height="20px" 
                        Width="30px" />
                        
                    <PagerStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <EditRowStyle BackColor="LightGray" />
                    <RowStyle CssClass="AlternativeRowStyle" />
                    <AlternatingRowStyle BackColor="White" CssClass="AlternativeRowStyle" />
                    
             </asp:GridView >
             
                 <asp:ObjectDataSource ID="dsMessage" runat="server" SelectMethod="GetMessage" 
                     TypeName="DirectService"></asp:ObjectDataSource>
             <br />
             </td>    
         </tr>       
        
<tr><td align="center" class="GridItem"  style="text-align:left">
<asp:UpdatePanel ID="updatePanelEquipment" runat="server">
            <ContentTemplate>
            
<div style="height:350px; width:auto; overflow:auto">
                <asp:GridView ID="grdProblem" runat="server" AllowPaging="True" AllowSorting="True" 
                    AutoGenerateColumns="False" BorderStyle="None" CssClass="GridItem" 
                    DataSourceID="dsProblem" 
                    RowHeaderColumn="EquipmentId" Width="90%" PageSize="8" 
                    onrowcommand="grdProblem_RowCommand" 
                    onpageindexchanged="grdProblem_PageIndexChanged" 
                    onselectedindexchanged="grdProblem_SelectedIndexChanged" 
                    onrowdatabound="grdProblem_RowDataBound" 
                    onpageindexchanging="grdProblem_PageIndexChanging" >
                    
                  
                    <HeaderStyle BorderStyle="None" CssClass="GridViewHeader" Height="20px" 
                        Width="30px" />
                    <Columns>
                        
                         <asp:CommandField ShowSelectButton="True" />
                         
                          <asp:TemplateField>
                            <ItemTemplate>
                                <a  title="Delete" href="javascript:confirmDelete('ProblemView.aspx?delete=true&tabIndex=0&problemId=<%# DataBinder.Eval(Container.DataItem,"ProblemId")%>&pageIndex=<%=GetPageIndex()%>')">
                                <img border="0" height="15" src="images/del.png" width="15"> </img></a>
                            </ItemTemplate>
                           
                            <ItemStyle Width="15px" />
                        </asp:TemplateField>
                        
                         <asp:TemplateField >
                            <ItemTemplate >  
                                <a title="Edit" href="ProblemView.aspx?tabIndex=1&problemId=<%# DataBinder.Eval(Container.DataItem, "ProblemId") %>"> 
                                <img border="0" src="./images/edit.png" width="15" height="15">
                                </a> 
                            </ItemTemplate>
                            <ItemStyle Width="15px" />
                        </asp:TemplateField>
                        
                        <asp:TemplateField >
                            <ItemTemplate >  
                                <a title="Add" href="ProblemView.aspx?tabIndex=2&problemId=<%# DataBinder.Eval(Container.DataItem, "ProblemId") %>"> 
                                <img border="0" src="./images/Add.png" width="15" height="15">
                                </a> 
                            </ItemTemplate>
                            <ItemStyle Width="15px" />
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="ProblemId" SortExpression="ProblemId">
                            <ItemTemplate>
                                <%# Eval("ProblemId") %>
                            </ItemTemplate>
                            <ItemStyle Width="50px" />
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox1" runat="server" Text='<%# Bind("ProblemId") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="Group problem" SortExpression="GROUPEPROBLEM">
                            <ItemTemplate>
                                <%# Eval("GROUPEPROBLEM")%>
                            </ItemTemplate>
                            <ItemStyle Width="150px" />
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox1" runat="server" Text='<%# Bind("GROUPEPROBLEM") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="Problem" SortExpression="Problem">
                            <ItemTemplate>
                                <%# Eval("PROBLEM") %>
                            </ItemTemplate>
                            
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox2" runat="server" Text='<%# Bind("Problem") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate></asp:TemplateField>
                    </Columns>
                    <PagerStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <EditRowStyle BackColor="LightGray" />
                    <RowStyle CssClass="AlternativeRowStyle" />
                    <AlternatingRowStyle BackColor="White" CssClass="AlternativeRowStyle" />
 </asp:GridView>
                <asp:ObjectDataSource ID="dsProblem" runat="server" 
                    SelectMethod="GetProblemDisplayed" TypeName="DirectServiceProblem" onselected="dsProblem_Selected" 
                    >
                    <SelectParameters>
                        <asp:ControlParameter ControlID="txtHiddenWhereClause" Name="whereclause" 
                            PropertyName="Text" Type="String" />
                        <asp:Parameter Name="orderclause" Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
 </div>
                 <asp:ObjectDataSource ID="dsOwn" runat="server" 
                          SelectMethod="GetOwnDiplayed" 
                    TypeName="DirectService"  >
                        
                          <SelectParameters>
                              <asp:ControlParameter ControlID="txtHiddenWhereClause" Name="whereClause" 
                                  PropertyName="Text" Type="String" />
                              <asp:Parameter Name="orderclause" Type="String" />
                          </SelectParameters>
              </asp:ObjectDataSource>
    </td></tr>
     
   <tr><td>
    <asp:TextBox ID="txtHiddenPageIndex" runat="server" Visible="false"></asp:TextBox>
    <a id="detailPosition"></a>
       <asp:TextBox ID="txtHiddenWhereClause" runat="server" Height="17px" Width="205px" Visible="False"></asp:TextBox>
       <asp:TextBox ID="txthiddenOrderbyClause" runat="server"  Width="16px" 
            Visible="False" Height="20px"></asp:TextBox>
              <Triggers>
              
                <asp:AsyncPostBackTrigger ControlID="txtHiddenWhereClause" EventName="TextChanged" />
                
            </Triggers>
            <Triggers>
            <asp:AsyncPostBackTrigger ControlID="txthiddenOrderbyClause" EventName="TextChanged" />
            </Triggers>
        	    </ContentTemplate>
        	    </asp:UpdatePanel>
     
                   
         </td></tr>
          
          
    </table>
                             
             </div>
                              
                     <div class="TabbedPanelsContent" >
                        <iframe  class="FrameDimension" src="ProblemModify.aspx?&problemId=<%=GetProblemId()%>" frameborder="0" ></iframe></div>
                      <div class="TabbedPanelsContent" >
                        <iframe  class="FrameDimension" src="ProblemAdd.aspx?&problemId=<%=GetProblemId()%>" frameborder="0" ></iframe></div>
               
          </div>
    </div>
 </div>
 
 </body>
 
 <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    
 </script>
   <!-- <%# Eval("Software") %> -->  
</asp:Content>



